package com.yun.zf.search.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yun.zf.common.admin.dto.community.CommunityStatisticalDto;
import com.yun.zf.common.app.domain.ZfCommunityStatistical;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 小区统计表 Mapper 接口
 * </p>
 *
 * @author cj
 * @since 2021-05-20
 */
@Mapper
public interface StatisticalMapper extends BaseMapper<ZfCommunityStatistical> {


    @Select("<script>" +
            " SELECT  community_id,total ,average_price,type, min_area,max_area,min_price,max_price ,price_unit FROM zf_community_statistical WHERE community_id =#{communityId} " +
            "</script>")
    public List<CommunityStatisticalDto> getStical(Long communityId);
}
